//设置别名
const path = require('path')
function resolve(dir) {
  return path.join(__dirname, dir)
}
module.exports = {
   lintOnSave: false,
  chainWebpack: config => {
    config.resolve.alias
      .set('@', resolve('src'))
      .set('assets', resolve('src/assets'))
      .set('components', resolve('src/components'))
      .set('common', resolve('src/common'))
      .set('layout', resolve('src/layout'))
      .set('network', resolve('src/network'))
  },
  devServer: {
    host: '0.0.0.0', // ip
    port: 8080, // 设置端口号
    public: '192.168.0.105:8080',
    https: false, // https:{type:Boolean}
    open: false, //配置自动启动浏览器
    proxy: null  //设置代理
  }
}